package java8_31.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PrinterTest {
    public static void main(String[] args) {
        Printer p=new Printer();
        p.setBrand("佳能炫彩700");
        p.setPrice(1700);
        p.setBox(new BlackAndWhiteInk("天威"));
        p.setPaper(new A4Paper("晨光"));

        p.print("教育改变生活");
        System.out.println("换一个墨盒：");
        ColorInk c=new ColorInk("佳能");
        p.setBox(c);
        p.print("We change lives!");
        System.out.println("换一张纸》》》》》》》》》》》");
        p.setPaper(new B5());
        p.print("We change lives!");
    }
}
